package com.neusoft.elmboot.util;

import at.favre.lib.crypto.bcrypt.BCrypt;

public class EncryptUtils {
    private static final String COMMON_ENCRYPT_SALT = "Fuck_crazy_thursday_vivo50";

    public static String getBCryptString(String str){
        return BCrypt.with(BCrypt.Version.VERSION_2Y).hashToString(10,str.toCharArray());
    }

    public static boolean verifyBCryptHash(String str1, String str2){
        return BCrypt.verifyer().verify(str1.toCharArray(), str2).verified;
    }
}
